package com.example.ibsp_demo.mapper.message;

import com.example.ibsp_demo.pojo.entity.message.LikeMessage;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface LikeMessageMapper {

    // 插入点赞消息
    int insert(LikeMessage likeMessage);

    // 查询用户收到的点赞消息
    List<LikeMessage> selectByUserId(int userId);

    // 查询用户收到的点赞消息（关联 content 表）
    List<LikeMessage> selectLikeMessageByUid(int userId);
    // 标记点赞消息为已读
    int markAsRead(int likeId);
}
